package com.web.activiti.pojo;

import java.util.List;

/**
 * 封装菜单的实体类
 */
public class TreeMenu {
    //一级菜单
    private Integer id;
    private String name;


    //二级菜单
    private List<SysPermission> children;//二级菜单

    public Integer getId () {
        return id;
    }

    public void setId (Integer id) {
        this.id = id;
    }

    public String getName () {
        return name;
    }

    public void setName (String name) {
        this.name = name;
    }


    public List<SysPermission> getChildren () {
        return children;
    }

    public void setChildren (List<SysPermission> children) {
        this.children = children;
    }

    @Override
    public String toString () {
        return "TreeMenu{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", children=" + children +
                '}';
    }
}
